package com.jumi.microservice.stock.service;

import com.jumi.microservice.stock.domain.*;

import javax.servlet.http.HttpServletRequest;
import java.util.List;

/**
 * @Description
 * @ClassName StockConversionService
 * @Author Abel Yang
 * @Date 2020/9/16/016 13:48
 **/
public interface StockConversionService {

    /**
     * @Description: 添加转换记录
     * @Param stockConversionApplyDTO
     * @Return {@link Boolean}
     * @Throws
     * @Author Abel Yang
     * @Date 2020/9/16/016 13:55
     */
    Boolean addConversion(StockConversionApplyDTO stockConversionApplyDTO, HttpServletRequest request);

    /**
     * @Description: 仓库转换类型
     * @Param stockConversionSearchDTO
     * @Return {@link List< StockConversionVO>}
     * @Throws
     * @Author Abel Yang
     * @Date 2020/9/16/016 14:15
    */
    List<StockConversionVO> getConversionList(StockConversionSearchDTO stockConversionSearchDTO);

    /**
     * @Description: 根据申请记录查询详情
     * @Param conversionId
     * @Return {@link StockConversionDetailVO}
     * @Throws
     * @Author Abel Yang
     * @Date 2020/9/16/016 14:32
    */
    StockConversionDetailVO getConversionDetail(Long conversionId);

    /**
     * @Description: 编辑
     * @Param stockConversionApplyDTO
     * @Param request
     * @Return {@link Boolean}
     * @Throws
     * @Author Abel Yang
     * @Date 2020/9/16/016 14:49
    */
    Boolean editConversion(StockConversionApplyDTO stockConversionApplyDTO, HttpServletRequest request);

    /**
     * @Description: 审核
     * @Param stockConversionAuditDTO
     * @Param request
     * @Return {@link Boolean}
     * @Throws
     * @Author Abel Yang
     * @Date 2020/9/16/016 15:03
    */
    Boolean auditConversion(StockConversionAuditDTO stockConversionAuditDTO, HttpServletRequest request);
}
